import { State } from './interface'
export default {
  // user
  token: (state: State) => state.user.token,
  name: (state: State) => state.user.name,
  department: (state: State) => state.user.department,
  position: (state: State) => state.user.position,
  roles: (state: State) => state.user.roles,
  rolesList: (state: State) => state.user.rolesList,
  // employee
  employee_list: (state: State) => state.employee.employee_list,
  // theme
  theme: (state: State) => state.theme.theme,
  // app
  sidebar: (state: State) => state.app.sidebar,
  device: (state: State) => state.app.device,
  size: (state: State) => state.app.size,
  // setting
  tagsView: (state: State) => state.setting.tagsView,
  // permission
  permission_routes: (state: State) => state.permission.routes,
  addRoutes: (state: State) => state.permission.addRoutes,
  // tagsView
  visitedViews: (state: State) => state.tagsView.visitedViews,
  cachedViews: (state: State) => state.tagsView.cachedViews
}
